//
//  ZPTDTableViewCell12.m
//  ZPIOSEducation
//
//  Created by Encoder on 17/1/16.
//  Copyright © 2017年 mini1. All rights reserved.
//

#import "ZPTDTableViewCell12.h"
#import "ZPSelectCurriculumCell.h"
@interface ZPTDTableViewCell12 ()<UICollectionViewDelegate,UICollectionViewDataSource,UICollectionViewDelegateFlowLayout>
@property (weak, nonatomic) IBOutlet UICollectionView *collectionView;

@end
@implementation ZPTDTableViewCell12

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    [_collectionView registerNib:[UINib nibWithNibName:@"ZPSelectCurriculumCell" bundle:nil] forCellWithReuseIdentifier:@"ZPSelectCurriculumCell"];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section{
    return 12;
}


- (__kindof UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath{
    ZPSelectCurriculumCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"ZPSelectCurriculumCell" forIndexPath:indexPath];
    
    return cell;
}

- (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath{
    
    float len=(SCREENWIDTH-17)/6;
    return CGSizeMake(len, 48);
    
}

@end
